-- GENERATED SPELL FOR [Ango'rosh Shaman] --


function spell0_18118(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18118', 30342, 1)
end

function spell1_18118(pUnit, Event) --@Fire Nova Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(32062,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_18118', 1, 1)
end

function spell2_18118(pUnit, Event) --@Healing Touch,Heal--
pUnit:FullCastSpellOnTarget(23381,pUnit)
pUnit:RegisterEvent('Sorts_18118', 3000, 1)
end

function spell3_18118(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18118', 3000, 1)
end

function Sorts_18118(pUnit, Event)
local choix_sorts_18118 = math.random(0, 3)
if choix_sorts_18118 == 0 then
pUnit:RegisterEvent('spell0_18118', 1, 1)
end
if choix_sorts_18118 == 1 then
pUnit:RegisterEvent('spell1_18118', 1, 1)
end
if choix_sorts_18118 == 2 then
pUnit:RegisterEvent('spell2_18118', 1, 1)
end
if choix_sorts_18118 == 3 then
pUnit:RegisterEvent('spell3_18118', 1, 1)
end
end

function mob18118_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18118', math.random(1500, 3000), 1)
end

function mob18118_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18118_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18118_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18118, 1, 'mob18118_Action')
RegisterUnitEvent(18118, 2, 'mob18118_Leave')
RegisterUnitEvent(18118, 3, 'mob18118_Kill')
RegisterUnitEvent(18118, 4, 'mob18118_Die')
